package com.project.feign.client.impl;

import com.project.common.core.utils.exception.CustomException;
import com.project.common.core.utils.exception.RESP_CODE_ENUM;
import com.project.common.core.utils.exception.Result;
import com.project.feign.client.WeChatServiceClient;
import org.springframework.stereotype.Component;

/**
 * 小程序服务调用客户端
 *
 * @Author: wyy
 * @Date: 2020-04-24 15:08
 */
@Component
public class WeChatServiceClientImpl extends BaseClientImpl implements WeChatServiceClient {

    /**
     * 生成无限制小程序码
     *
     * @param scene   场景值
     * @param pageUri 小程序页面路由地址
     * @param width   小程序码大小
     * @return
     */
    @Override
    public Result<String> getMiniQrCodeImg(String scene, String pageUri, int width) {
        throw new CustomException(RESP_CODE_ENUM.MICRO_SERVICE_ERROR);
    }

    /**
     * 敏感内容校验
     *
     * @param comment   内容信息
     * @return
     */
    @Override
    public Result<Boolean> getMiniCommentCheck(String comment) {
        throw new CustomException(RESP_CODE_ENUM.MICRO_SERVICE_ERROR);
    }

    /**
     * 发送微信推送消息模板
     * @author light
     * @date 2020-06-29 18:39
     * @params
     * @param learnBlogId
     * @param teacherName
     * @param xcxUserId
     * @param xcxOpenId
     * @param chapterTitle
     * @return java.lang.Boolean
     **/
    @Override
    public Boolean sendTemplateMsg(String learnBlogId, String teacherName, String xcxUserId, String xcxOpenId, String chapterTitle) {
        throw new CustomException(RESP_CODE_ENUM.MICRO_SERVICE_ERROR);
    }
}
